<#include "/includes/header.ftl">
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="120" valign="top"><#include "/includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
	<#-- Main Content-->
	<table width="100%" border="0">
  <form name="edit_store_profile" action='<@spring.url "/editmycompanyproductprofile.pdm"/>' method="post" onsubmit="return check_form(create_account);">
  <tr>
    <th colspan="2" align='center'>管理公司-发布商品资料-标准版编辑器</th>
  </tr>
  <tr>
    <th colspan="2" align='center'><hr></th>
  </tr>

  <tr>
    <th colspan="2" align='center'>
    	<b>基本资料</b>&nbsp;&nbsp;
    	<#if command.site2Content.sysId?has_content>
    	<A href='<@spring.url "/uploadmycompanyproductimages.pdm?s2csid=${command.site2Content.sysId}"/>'>上传商品图片</A>&nbsp;&nbsp;
    	<A href='<@spring.url "/viewproductdetail.jsp?csid=${command.site2Content.content.sysId}"/>'><b>预览商品</b></A>&nbsp;&nbsp;
    	</#if>
		  <#if command.site2Content.sysId?has_content>
		  <@spring.bind "command.site2Content.sysId" />    
		  <INPUT type="hidden" name="${spring.status.expression}" value='${spring.status.value}'  />
		  <INPUT type="hidden" name="s2csid" value='${spring.status.value}'  />
		  </#if>
    </th>
  </tr>
  
	<#if primaryContentCategoryTrail?has_content>  
  <tr>
    <th width="1%" nowrap="NOWRAP" scope="row"><div align="right">商品初设分类: </div></th>
    <td>
				<INPUT type="hidden" name="cgid" value="${cgid}"/>
        <div align="left">
				<#list primaryContentCategoryTrail as g>
					<#if g_index gt 0>&gt;&gt;</#if><A href='<@spring.url "/listcategory2product.jsp?cgid=${g.categoryId}"/>'>${g.name?default("No-Name")}</A>
				</#list>
				</div>
		</td>        
    </tr>

  <tr>
    <th width="1%" nowrap="NOWRAP" scope="row"><div align="right"></div></th>
    <td width="99%">
        <div align="left"><font color="red">商品初设分类由你创建商品资料时决定,不能更改,请仔细选择.商品初设分类非常重要,可以方便你的顾客快速找到你的商品.</font></div>        
		</td>        
    </tr>
	</#if>

    
  <tr>
    <th width="1%" nowrap="nowrap" scope="row"><div align="right">商品编号: </div></th>
    
    <td width="90%">
	    <@spring.bind "command.site2Content.content.contentId" />    
	    <#if command.site2Content.sysId?has_content>
	    	${spring.status.value?default("No-contentId")}
	    <#else>
		      <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("")}'  />&nbsp;<SPAN class=inputRequirement>*</SPAN>
	      <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list><font color="red">商品编号以后不允许修改，请仔细填写。</font>
	    </#if>
    </td>
  </tr>

  <tr>
    <th width="1%" nowrap="nowrap" scope="row"><div align="right">商品名称: </div></th>
    <td width="90%">
      <@spring.bind "command.site2Content.content.name" />    
	      <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("")}'  size="64"/>&nbsp;<SPAN class=inputRequirement>*</SPAN>
      <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
    </td>
  </tr>

  <tr>
    <th width="1%" nowrap="nowrap" scope="row" valign="top"><div align="right">商品简短描述: </div></th>
    <td width="80%">
      <@spring.bind "command.site2Content.content.shortDesc" />    
		    <textarea name="${spring.status.expression}" cols="60" rows="3">${spring.status.value?default("")}</textarea>
      <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
    </td>
  </tr>

  <tr>
    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right">商品详细描述: </div></th>
    <td>
      <@spring.bind "command.site2Content.content.longDesc" />    
		  <textarea name="${spring.status.expression}" cols="60" rows="8">${spring.status.value?default("")}</textarea>
      <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
		</td>
    </tr>

	  <tr>
	    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right">商品品牌: </div></th>
	    <td>
	    <#if content2BrandCategory?has_content>
	    	${content2BrandCategory.category.name?default("No-Brand-Name")}
	    <#else>
				<#if g2gBrandList?has_content>
		    	<#list g2gBrandList as g2g>
			    	<INPUT type="radio" name="brandCategoryId" value="${g2g.category.categoryId}"/>${g2g.category.name?default("No-CategoryName")}
		    	</#list><br><font color="red">商品品牌选定后不能修改，请仔细选择。</font>
		    <#else>其他	
				</#if>
	    </#if>	
	    </td>
	    </tr>

	  <tr>
	    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right">专有商品?: </div></th>
	    <td><INPUT type="radio">我店专有商品&nbsp;&nbsp;<INPUT type="radio">店铺共有商品</td>
	    </tr>


	  <tr>
    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right">商品状态: </div></th>
    <td>
      <@spring.bind "command.site2Content.content.status" />
      <#assign status = spring.status.value?default(1001)>
      <#if status == 2003>
		  <INPUT type="radio" name="${spring.status.expression}" value="1001" disabled <#if status == 1001>checked</#if>>编辑中&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1002" disabled <#if status == 1002>checked</#if>>申请审批&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1003" disabled <#if status == 1003>checked</#if>>审批未通过&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1004" disabled <#if status == 1004>checked</#if>>被禁止&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1005" disabled <#if status == 1005>checked</#if>>已上线&nbsp;&nbsp;
		  <#else>
		  <INPUT type="radio" name="${spring.status.expression}" value="1001" <#if status == 1001>checked</#if>>编辑中&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1002" <#if status == 1002>checked</#if>>申请审批&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1003" disabled <#if status == 1003>checked</#if>>审批未通过&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1004" disabled <#if status == 1004>checked</#if>>被禁止&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1005" <#if status == 1005>checked</#if>>已上线&nbsp;&nbsp;
		  </#if>
      <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
		</td>
    </tr>
		
  <tr>
    <th scope="row">&nbsp;</th>
    <td colspan="2">*只有状态为<font color="red">已上线</font>,商品资料才能被零售商及顾客检索到.</td>
  </tr>

  <tr>
    <th scope="row">&nbsp;</th>
    <td colspan="2"><label>
      <div align="left">
        <input type="submit" name="Submit" value="保存" />
        </div>
    </label></td>
  </tr>
  <tr>
    <th scope="row">&nbsp;</th>
    <td colspan="2">&nbsp;</td>
  </tr>
  </form>
</table>
	
	<#-- /Main Content-->
	</TD>	
	<TD valign="top"><#include "/includes/rightbar.ftl"></TD>
</TR>
</TABLE>

<#include "/includes/footer.ftl">